import axios from '../../axios'

export default {
    getComplaints(params){
        return axios({
            url:'/complaints/getComplaints',
            method:'get',
            params
        })
    },
    getComplaintsById(data){
        return axios({
            url:'/complaints/getComplaintsById',
            method:'post',
            data
        })
    },
    minusLessorsCredits(msg){
        return axios({
            url:'/complaints/minusLessorsCredits',
            method:'post',
            data:msg
        })
    },
    minusTenantsCredits(msg){
        return axios({
            url:'/complaints/minusTenantsCredits',
            method:'post',
            data:msg
        })
    },
    handleComplaints(msg){
        return axios({
            url:'/complaints/handleComplaints',
            method:'post',
            data:msg
        })
    }
}